package com.axc.common.utils;

import java.util.List;

/**
 * @Author AXC yfq900108
 */

public  class PageLayUi<T>{
	
    private int  code;//错误编码：0：成功；1：成功，但无数据；2：失败；
    private String msg;//错误信息
    private int total;//总条数
     
    /** 分页结果 */
    private List<T> dataList;

	public PageLayUi() {
		
	}
	
	public PageLayUi(int code,String msg,int total,List<T> list) {
		this.code=code;
		this.msg=msg;
		this.total=total;
		this.dataList = list;
	}
  

    public int getCode() {
        return code;
    }

    public void setCode(int Code) {
        this.code = Code;
    }
    
    public String getMsg() {
        return msg;
    }

    public void setMsg(String Msg) {
        this.msg = Msg;
    }
    
    public int getTotal() {
        return total;
    }

    public void setTotal(int Total) {
        this.total = Total;
    }
    
//    public PageLayUi_Info getPageInfo() {
//        return PageInfo;
//    }
//
//    public void setPageInfo(PageLayUi_Info PageInfo) {
//        this.PageInfo = PageInfo;
//    }
    
    
    public List<T> getDataList() {
        return dataList;
    }

    public void setDataList(List<T> dataList) {
        this.dataList = dataList;
    }

}
